﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace HugMe
{
	public class RouteConfig
	{
		public static void RegisterRoutes(RouteCollection routes)
		{
			routes.IgnoreRoute("{resource}.axd/{*pathInfo}");



			routes.MapRoute(
					name: "vk_ViewMessages_Approve",
					url: "vk/viewmessages/approve/{partnerId}",
					defaults: new { controller = "Vk", action = "Approve" }
			);

			routes.MapRoute(
					name: "vk_ViewMessages",
					url: "vk/viewmessages",
					defaults: new { controller = "Vk", action = "ViewMessages" }
			);

			routes.MapRoute(
					name: "vk_AddPartner",
					url: "vk/addpartner/{partnerId}",
					defaults: new { controller = "Vk", action = "AddPartner" }
			);

			routes.MapRoute(
					name: "vk",
					url: "vk/{page}",
					defaults: new { controller = "Vk", action = "Index", page = 1 }
			);
		}
	}
}